package com.quentinbeauperin.twitbird
{
	import flash.display.Bitmap;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	
	import mx.core.BitmapAsset;
	
	import org.osmf.utils.URL;
	
	public class Map extends Sprite
	{
		private var map:Bitmap;
		
		// Create the map depending on the specified id
		public function Map(id:int):void
		{
			super();
			if(id == 1) {
				map = new Assets.Bg1();
			}
			else if (id == 2) {
				map = new Assets.Bg2();
			}
			else if (id == 3) {
				map = new Assets.Bg3();
			}
			else if (id == 4) {
				map = new Assets.Bg4();
			}
			else if (id == 5) {
				map = new Assets.Bg5();
			}
			addChild(map);
			
		}
	}
}